package com.city.subscription.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/10/25
 * Time: 14:58
 * Description: No Description
 */
@Data
@XStreamAlias("xml")
public class returMessage {
    @XStreamAlias("ToUserName")
    private String toUserName;
    @XStreamAlias("FromUserName")
    private String fromUserName;
    @XStreamAlias("CreateTime")
    private String createTime;
    @XStreamAlias("MsgType")
    private String msgType;

    public returMessage(Map<String,String> requestMap){
        this.toUserName=requestMap.get("ToUserName");
        this.fromUserName=requestMap.get("FromUserName");
        this.createTime=System.currentTimeMillis()/1000+"";
    }
}
